package com.tarena.lbs.business.clients;

import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.basic.pojo.vo.AreaVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
@FeignClient(name = "lbs-basic")

public interface AreaClient {

    @GetMapping("/admin/basic/area/list")
     Result<List<AreaVO>> queryProvinces();


    @GetMapping(value = {"/admin/basic/area/{parentId}/children", "/admin/basic/store/city/list", "/admin/basic/store/area/list"})
    public Result<List<AreaVO>> queryChildren();

    @GetMapping("/admin/basic/area/tree")
    public Result<List<AreaVO>> tree() ;
}
